package com.whxy02.tolearn.app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.whxy02.tolearn.app.beans.Question;
import com.whxy02.tolearn.app.resultObject.QuestionResultType;

import java.util.List;

public interface QuestionService extends PublicService<Question>{
    public List<Question> getByLimit(Integer subjectId, QuestionResultType result)throws Exception;
    public List<Question> getByLimit(Integer subjectId,Integer tagsId, QuestionResultType result) throws Exception ;
    public Page<Question> getByPage(Integer nowPage,Integer subjectId,Integer tagsId)throws Exception;
    public Page<Question> getByPage(Integer nowPage,Integer subjectId)throws Exception;
    public List<Question> getByIds(List<Integer> ids)throws Exception;
}
